from tkinter import *

n, x, y = map(int, input().split())
if n == 0 and 0 <= x <= 500 and 0 <= y <= 500:
    pass
elif n > 0 and 0 * n + x >= 0 and 0 * n + y >= 0 and 20 * n + x <= 500 and 30 * n + y <= 500:
    pass
elif n < 0 <= 20 * n + x and 30 * n + y >= 0 and 0 * n + x <= 500 and 0 * n + y <= 500:
    pass
else:
    print("Размер фигуры превышает максимальный размер")
    exit()

coords = [
    0 * n + x, 0 * n + y,
    10 * n + x, 0 * n + y,
    10 * n + x, 20* n + y,
    20 * n + x, 20* n + y,
    20 * n + x, 0 * n + y,
    30 * n + x, 0 * n + y,
    30 * n + x, 20 * n + y,
    40 * n + x, 20 * n + y,
    40 * n + x, 0 * n + y,
    50 * n + x, 0 * n + y,
    50 * n + x, 30 * n + y,
    0 * n + x, 30 * n + y
]

root = Tk()
root.title('ИТ Марафон')
root.geometry("500x500")
canvas = Canvas(background="white", width=500, height=500)
canvas.pack(anchor=CENTER, expand=1)
canvas.create_polygon(coords, fill="#80CBC4", outline="#004D40")
root.mainloop()
